<?php
final class DefaultController extends ABController{
	protected $s_sessionname = 'ablogging-admin';
	protected $b_persistent = true;
	protected $a_models = array('auth');
	
	function __construct(ABView $o_tpl){
		parent::__construct($o_tpl);
		$o_auth  = Auth::getInstance();
		if(!$o_auth->isLogin()){
			//$this->redirect('admin/login', 'index');
		}
	}

	function index(){
		$this->redirect('admin/default', 'todo');
	}
	
	function todo(){
		$this->ptitle = 'Por Hacer';
		$this->render(false, 'todo');
	}

	function page(){
		$this->redirect('admin/pages');
	}

	function finalize(){
		$this->title = $this->a_conf['title'];
		$this->desc  = $this->a_conf['desc'];
	}
}
?>
